<html>
	<head>
		<title>test</title>
		<script src="extension.js"></script>
	</head>
	<body>
	begin
		<script language="javascript">
		
		try{
			var sb = new StringBuilder();
			sb.indentStr = "-";
			sb.writeLine("a");
			sb.indent();
			sb.writeLine("b");
			sb.writeLine("b");
			sb.unindent();
			sb.writeLine("c");
			sb.writeValue(3, 5, 0, '-'); sb.writeLine();
			sb.writeValue(3, 5, 1, '-'); sb.writeLine();
			sb.writeValue(3, 5, 2, '-'); sb.writeLine();
			sb.writeValue(3, 4, 0, '-'); sb.writeLine();
			sb.writeValue(3, 4, 1, '-'); sb.writeLine();
			sb.writeValue(3, 4, 2, '-'); sb.writeLine();
			sb.writeValue("hello", 14, 2, '-'); sb.writeLine();
			alert(sb.toString());
			
			alert(Object.getValue(sb, "indentStr"));
			alert(Object.getValue(sb, "indentStr", "length"));
			alert(Object.getValue(sb, "indentStr", "length", "cdeg"));
			alert(Object.getValue(sb, "a"));
			alert(Object.getValue(sb, "abc"));
		}
		catch(ee)
		{
			//alert(e.message);
			var str = "";
			for(var fld in ee)
				str = str + fld + ":" + ee[fld] + "\n";
			alert(str);
		}
		</script>
	end
	</body>
</html>